﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.EntityFramework;
using System.Data.Entity;
using System.Security.Cryptography.X509Certificates;
using System.Security.Policy;
namespace ConsoleApp1
{

    
        [DbConfigurationType(typeof(MySqlEFConfiguration))]
        public class OrderContext : DbContext
        {
            public OrderContext() : base("OrderDataBase")
            {
                Database.SetInitializer(new DropCreateDatabaseIfModelChanges<OrderContext>());
            }

            public DbSet<Order> Orders { get; set; }
            public DbSet<OrderDetail> OrderDetails { get; set; }
            public DbSet<Goods> Goods { get; set; }
            public DbSet<Customer> Customers { get; set; }
        }
    
}
